﻿using HslCommunication;
using PLCDataCollector.Core.Entities;
using PLCDataCollector.Core.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCDataCollector.Core.Interfaces
{
    public interface IPLCService
    {
        bool Connect();
        void Disconnect();
        OperateResult<object> ReadData(DeviceMappingDetail detail);

        OperateResult WriteData(PlcWriteModel detail);
        bool IsConnected { get; }
        string ProtocolType { get; }
    }
}
